import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	formid: string;
	productid: string;
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { exec, prepare } = query(action_id, session_id, '12');
	prepare('pub_form', ['package_no', 'package_name', 'package_path', 'formid', 'formname', 'group_number'], { formid: msg.formid, productid: msg.productid }, 10, 1, [], []);
	const [data] = await exec();
	return data;
}
